package com.taozi.question.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.taozi.common.annotation.Excel;
import com.taozi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 面试对象 sys_interview
 *
 * @author taozi
 * @date 2024-06-11
 */
@Data
public class SysInterview extends BaseEntity {

    /**
     * 序列化
     */
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    private Long id;

    /**
     * 面试公司名称
     */
    @Excel(name = "面试公司名称")
    private String companyName;

    /**
     * 面试岗位
     */
    @Excel(name = "面试岗位")
    private String positionName;

    /**
     * 面试时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "面试时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date interviewTime;

    /**
     * 面试问答题
     */
    @Excel(name = "面试问答题")
    private String interviewQuestionAnswer;

    /**
     * 面试结果
     */
    @Excel(name = "面试结果")
    private String interviewResult;

    /**
     * 面试备注
     */
    @Excel(name = "面试备注")
    private String interviewRemark;

    /**
     * 重写toString方法
     * @return 字符串
     */
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyName", getCompanyName())
                .append("positionName", getPositionName())
                .append("interviewTime", getInterviewTime())
                .append("interviewQuestionAnswer", getInterviewQuestionAnswer())
                .append("interviewResult", getInterviewResult())
                .append("interviewRemark", getInterviewRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}